package com.daervin.svc.common.handler;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Created by daervin on 2023/8/26
 */
public class SessionHandler implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        // 会话创建时触发
//        System.out.println("Session Created: " + se.getSession().getId());
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
// 会话销毁时触发
//        System.out.println("Session Destroyed: " + se.getSession().getId());
    }
}
